package com.dimensionx.links.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author tyz
 * @since 2024-06-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("links_data_attachment")
@ApiModel(value="DataAttachment对象", description="")
public class DataAttachment extends Model<DataAttachment> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "文件ID")
    private String key;

    @ApiModelProperty(value = "文件名")
    private String fileName;

    @ApiModelProperty(value = "二进制内容")
    private String content;

    @ApiModelProperty(value = "父ID，工单ID")
    private String parentId;

    @ApiModelProperty(value = "来源 feishu/upload")
    private String origin;

    @ApiModelProperty(value = "存储位置 L本地 A阿里云oss...")
    private String storeWay;

    @ApiModelProperty(value = "文件类型 image/file")
    private String fileType;

    private Long fileSize;

    private Date createdAt;

    private Date updatedAt;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
